<?php

class Application_Model_Category extends Application_Model_Object
{
    protected $_categoryid;
    protected $_parentid;
    protected $_description;
    protected $_categoryname;
    protected $_htmlurl;
    protected $_rssurl;
    protected $_categorydescription;

    public function setOptions(array $options)
    {
        if (isset($options['categoryid'])) {
            $this->setCategoryid($options['categoryid']);
            unset($options['categoryid']);
        }

        if (isset($options['parentid'])) {
            $this->setParentid($options['parentid']);
            unset($options['parentid']);
        }

        if (isset($options['description'])) {
            $this->setDescription($options['description']);
            unset($options['description']);
        }

        if (isset($options['categoryname'])) {
            $this->setCategoryname($options['categoryname']);
            unset($options['categoryname']);
        }

        if (isset($options['htmlurl'])) {
            $this->setHtmlurl($options['htmlurl']);
            unset($options['htmlurl']);
        }

        if (isset($options['rssurl'])) {
            $this->setRssurl($options['rssurl']);
            unset($options['rssurl']);
        }

        if (isset($options['categorydescription'])) {
            $this->setCategorydescription($options['categorydescription']);
            unset($options['categorydescription']);
        }

    }
    
    public function setCategoryid($categoryid)
    {
        $this->_categoryid = $categoryid;
    }
    public function getCategoryid()
    {
        return $this->_categoryid;
    }

    public function setParentid($parentid)
    {
        $this->_parentid = $parentid;
    }
    public function getParentid()
    {
        return $this->_parentid;
    }

    public function setDescription($description)
    {
        $this->_description = $description;
    }
    public function getDescription()
    {
        return $this->_description;
    }

    public function setCategoryname($categoryname)
    {
        $this->_categoryname = $categoryname;
    }
    public function getCategoryname()
    {
        return $this->_categoryname;
    }

    public function setHtmlurl($htmlurl)
    {
        $this->_htmlurl = $htmlurl;
    }
    public function getHtmlurl()
    {
        return $this->_htmlurl;
    }

    public function setRssurl($rssurl)
    {
        $this->_rssurl = $rssurl;
    }
    public function getRssurl()
    {
        return $this->_rssurl;
    }

    public function setCategorydescription($categorydescription)
    {
        $this->_categorydescription = $categorydescription;
    }
    public function getCategorydescription()
    {
        return $this->_categorydescription;
    }


}

